#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_execrise1.py
# author:wmf
# datetime:2021/3/15 15:39
# software: PyCharm
'''
this is function description
'''
# import module your need

#定义一个函数,来计算苹果的价格(重量*价格); 通过键盘输入重量和价格,然后调用函数来计算;

def calculation():
   weigth = eval(input("输入重量:"))
   price = eval(input("输入单价:"))
   price = weigth*price
   print("总价为:%d"%(price))

if __name__ == '__main__':
    calculation()